import 'package:get/get.dart';
import 'package:netease_music/pages/changeColumn/index.dart';
import 'package:netease_music/pages/home/index.dart';
import 'package:netease_music/pages/launch/index.dart';
import 'package:netease_music/pages/person/index.dart';
import 'package:netease_music/pages/search/index.dart';
import 'package:netease_music/pages/themeChange/index.dart';
import 'package:netease_music/player/ui/full_player.dart';

class AppPages {
  static final routes = [
    // 首页
    GetPage(
      name: '/home',
      page: () => const HomePage(),
    ),
    // 启动页
    GetPage(
      name: '/launch',
      page: () => const LaunchPage(),
    ),
    // 搜索页
    GetPage(
      name: '/search',
      page: () => const SearchPage(),
      // 定义动画类型
      transition: Transition.rightToLeft,
      // 定义动画时长
      transitionDuration: const Duration(milliseconds: 100),
    ),
    GetPage(
      name: '/changeColumn',
      page: () => const ChangeColumn(),
      // 定义动画类型
      transition: Transition.rightToLeft,
      // 定义动画时长
      transitionDuration: const Duration(milliseconds: 100),
    ),
    GetPage(
      name: '/person',
      page: () => const PerSonPage(),
      // 定义动画类型
      transition: Transition.rightToLeft,
      // 定义动画时长
      transitionDuration: const Duration(milliseconds: 100),
    ),
    GetPage(
      name: '/themeChange',
      page: () => const ThemeChangePage(),
      // 定义动画类型
      transition: Transition.rightToLeft,
      // 定义动画时长
      transitionDuration: const Duration(milliseconds: 100),
    ),
    GetPage(
      name: '/fullPlayer',
      page: () => const FullPlayer(),
      // 定义动画类型
      transition: Transition.rightToLeft,
      // 定义动画时长
      transitionDuration: const Duration(milliseconds: 300),
    ),
  ];
}
